list1 = [29,14,37,15,10]
# 第一遍  排好了 [len-1 : ]   n = 0
# 第二遍         [len-2 : ]   n = 1
# 第三遍         [len-3 : ]   n = 2
print(list1)
print()
n = 0
while n < len(list1)-1:
    i = 0
    while i < len(list1) - (n+1):
        if list1[i] > list1[i+1]:
            list1[i],list1[i+1] = list1[i+1],list1[i]
        i += 1
    print(list1)
    n += 1